package com.hgd.igreencar.controller;

import com.hgd.igreencar.biz.IAirElementBiz;
import com.hgd.igreencar.entity.AirElement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/AirElement")
public class AirElementController {
    @Autowired
    private IAirElementBiz iAirElementBiz;

    /**
     * 查询所有空气成分
     */
    @GetMapping("/queryAll")
    public @ResponseBody List<AirElement> queryAirElementBaseInfo() {
        return iAirElementBiz.queryAirElementBaseInfo();
    }


}